{% load static %}
<!DOCTYPE html>
<html>
<head>
    <title>{% block title %}{% endblock %}</title>
    <link href="{% static "css/base.css" %}" rel="stylesheet">
</head>
<body>
    <div id="header">
        <div>
            <span class="user">
                {% if request.user.is_authenticated %}
                    欢迎 {{ request.user.username }}, <a href="{% url 'account:logout' %}">注销</a> | <a href="{% url 'account:edit' %}">更改信息</a>
                {% else %}
                    <a href="{% url 'account:login' %}">登录</a>
                {% endif %}
            </span>
        </div>
        {% if request.user.is_authenticated %}
            <ul class="navigation">
                <li {% if section == 'dashboard' %}class="selected"{% endif %}><a href="{% url 'account:dashboard' %}">Home</a></li>
                <li {% if section == 'blog' %}class="selected"{% endif %}><a href="{% url 'blog:post_list' %}">Blog</a></li>
                <li {% if section == 'people' %}class="selected"{% endif %}><a href="#">Other</a></li>
            </ul>
        {% endif %}
    </div>
{#    {% if messages %}#}
{#        <ul class="messages">#}
{#            {% for message in messages %}#}
{#                <li class="{{ message.tags }}">{{ message|safe }}<a href="#" class="close">X</a></li>#}
{#            {% endfor %}#}
{#        </ul>#}
{#{% endif %}#}
    <div id="content">
        {% block content %}
        {% endblock %}
    </div>
</body>
</html>